package com.boot.main;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@SpringBootApplication
@EnableAsync // 开启异步处理功能
@EnableScheduling // 开启定时任务功能
//@ComponentScan("com.boot.main")
public class SpringBootApp {
//    private static final Logger logger = LoggerFactory.getLogger(SpringBootApp.class);
    public static void main(String[] args){
        SpringApplication application = new SpringApplication(SpringBootApp.class);
//        Map<String, Object> defProperties =  new HashMap<>();
//        defProperties.put("server.port", "8888");
//        application.setDefaultProperties(defProperties);
        log.info("6666");
        application.run(args);
    }
}
